package com.gxa.meiye.core.utils;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * @author chen
 * @date 2022/7/11 10:14
 */
public class JsonUtil {

    private static ObjectMapper objectMapper ;
    static{
        objectMapper = new ObjectMapper();
    }

    public static <T> T read(String jsonString,Class<T> clazz) throws JsonProcessingException {
        T t = objectMapper.readValue(jsonString, clazz);
        return t;
    }

    public static String write(Object object){
        return null;
    }
}
